package color.koitq.picker.activty;

import android.view.View;
import android.widget.EditText;

import com.qmuiteam.qmui.widget.QMUITopBarLayout;

import color.koitq.picker.R;
import color.koitq.picker.base.BaseActivity;

import butterknife.BindView;
import butterknife.OnClick;

public class FeedbackActivity extends BaseActivity {

    @BindView(R.id.topbar)
    QMUITopBarLayout topBar;
    @BindView(R.id.etContent)
    EditText etContent;

    @Override
    protected int getContentViewId() {
        return R.layout.activity_feedback;
    }

    @Override
    protected void init() {
        topBar.setTitle("建议反馈");
        topBar.addLeftImageButton(R.mipmap.back_white_icon,R.id.topbar_right_btn).setOnClickListener(v->finish());
    }

    @OnClick({R.id.btnSubmit})
    public void onViewClick(View view) {
        switch (view.getId()) {
            case R.id.btnSubmit:
                showSuccessTip(etContent, "提交成功");
                etContent.setText("");
                finish();
                break;
        }
    }
}
